import { ColumnProps } from "@/components/Table/type";
const stateList = [
  { label: "进行中", value: "RUNNING" },
  { label: "已完成", value: "COMPLETED", type: "success" },
  { label: "已取消", value: "CANCELED", type: "warning" },
  { label: "已终止", value: "TERMINATED", type: "danger" }
];
export const columns: ColumnProps[] = [
  { type: "index", label: "#", width: 50 },
  { prop: "processName", label: "流程名称", search: { el: "input" } },
  { prop: "nickName", label: "发起人" },
  {
    prop: "startDate",
    label: "发起时间",
    search: { el: "datePicker", elProps: { type: "daterange", valueFormat: "YYYY-MM-DD", format: "YYYY-MM-DD" } }
  },
  { prop: "endDate", label: "结束时间" },
  { prop: "processStatus", label: "流程状态", enum: stateList },
  { prop: "action", label: "操作", width: 100, fixed: "right" }
];
